package day1101_1;

import java.io.FileInputStream;
import java.io.IOException;

public class O2 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis=new FileInputStream("a.txt");
        //1.创建文件输入流对象

        //char c=(char)fis.read();
        //System.out.println( c );
        byte[] bs=new byte[512];
        fis.read(bs);
        System.out.println( new String(bs) );
        //2.fis的读方法read()

        fis.close();
        //3.关闭文件输入流
    }
}
